package com.lld.service.impl;

import com.lld.dao.ThingDao;
import com.lld.entity.Thing;
import com.lld.service.ThingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: memo
 * @description: 备忘录业务实现类
 * @author: lld
 * @create: 2020-10-09 19:52
 **/
@Service
public class ThingServiceImpl implements ThingService {
    @Autowired
    private ThingDao thingDao;
    @Override
    public List<Thing> queryThingById(Integer id) {
        return thingDao.queryThingById(id);
    }

    @Override
    public void insertThing(Thing thing) {
        thingDao.insertThing(thing);
    }

    @Override
    public void removeThing(Integer id) {
        thingDao.removeThing(id);
    }
}
